﻿using ConsumeDemo.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace ConsumeDemo.Services
{
    public class VideoService: IVideoService
    {
        private BusinessContext _businessContext;
        public VideoService(BusinessContext businessContext) {
            this._businessContext = businessContext;
        }

        public void Create(Video video) {
            _businessContext.Add(video);
            _businessContext.SaveChanges();
        }
    }
}
